// Transformations.h: interface for the Transformations class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TRANSFORMATIONS_H__C1B2F392_9A4A_43A0_9814_9359481BF62C__INCLUDED_)
#define AFX_TRANSFORMATIONS_H__C1B2F392_9A4A_43A0_9814_9359481BF62C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <math.h>
#define N 3
#define PI 3.14159265
#define GRADOS PI / 180

class Transformations  
{
private:
    double tt[N][N];
    double p0[N],p1[N];
	int i,j;
public:
	Transformations();
	virtual ~Transformations();
	void setTranslationMatrix(double tx, double ty);
	void setScaleMatrix(double ex, double ey);
    void setRotationMatrix(double theta);    
	void setPoint(double x, double y);
	void initPoint();
	void doTransformation(double x, double y, double * xt, double * yt);
};

#endif // !defined(AFX_TRANSFORMATIONS_H__C1B2F392_9A4A_43A0_9814_9359481BF62C__INCLUDED_)
